import $axios from "@/network";

/**
 * 在线地图
 * @returns {*}
 */

export const onlineMap = (id, type, plott, plottDataId, decide) => {
    return $axios({
        method: 'POST',
        url: '/plott/addPlott',
        data: {
            "id": id,
            "type": type,
            "plott": plott,
            "plottDataId": plottDataId,
            "decide": decide,
        }
    })
}


export const getMap = (id) => {
    return $axios({
        method: 'POST',
        url: '/plott/getPlottAll/{id}',
        data: {
            "id": id,
        }
    })
}